package com.demo.steammanagement.model.vo;

import com.demo.steammanagement.common.BaseVO;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;

@Data
public class RentalVO extends BaseVO {
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    /**
     * 用户ID
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long userId;

    /**
     * 账号ID
     */
    private Long gameAccountId;

    /**
     * 游戏ID
     */
    private Long gameId;

    /**
     * 租用开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss", timezone = "GMT+8")
    private Date startTime;

    /**
     * 租用结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss", timezone = "GMT+8")
     private Date endTime;

    /**
     * 租用状态 1进行中 0已结束
     */
    private Integer status;


    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss", timezone = "GMT+8")
    private Date updatedAt;

    private String name;

    private String account;

    private String userName;
    private String userAccount;

    /**
     * 上次延长时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss", timezone = "GMT+8")
    private Date lastExtendTime;

    private String imageUrl;

    /**
     * 账号密码
     */
    private String password;

    /**
     * 账号令牌
     */
    private String stoken;


    @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss", timezone = "GMT+8")
    private Date createdAt;
}
